
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 订单详情表
    /// </summary>
    public partial class OrderItemInfo:BaseModel
    {      
    
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public long OrderId { get; set; }
        public long ShopId { get; set; }
        public long ProductId { get; set; }
        /// <summary>
        /// SKUId
        /// </summary>
        public string SkuId { get; set; }
        /// <summary>
        /// SKU表SKU字段
        /// </summary>
        public string SKU { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public long Quantity { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public long ReturnQuantity { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal CostPrice { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        public decimal SalePrice { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal DiscountAmount { get; set; }
        /// <summary>
        /// 实际应付金额
        /// </summary>
        public decimal RealTotalPrice { get; set; }
        /// <summary>
        /// 退款价格
        /// </summary>
        public decimal RefundPrice { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string Color { get; set; }
        /// <summary>
        /// 尺寸
        /// </summary>
        public string Size { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public string ThumbnailsUrl { get; set; }
        /// <summary>
        /// 分享分佣比例
        /// </summary>
        public decimal CommisRate { get; set; } = 0.00M;
        /// <summary>
        /// 总代分佣比例
        /// </summary>
        public decimal CommisRateOne { get; set; } = 0.00M;
        /// <summary>
        /// 一级代理分佣比例
        /// </summary>
        public decimal CommisRateTwo { get; set; } = 0.00M;
        /// <summary>
        /// 二级代理分佣比例
        /// </summary>
        public decimal CommisRateThree { get; set; } = 0.00M;
        /// <summary>
        /// 可退金额
        /// </summary>
        public decimal? EnabledRefundAmount { get; set; }
        /// <summary>
        /// 是否为限时购商品
        /// </summary>
        public bool IsLimitBuy { get; set; }
     
        /// <summary>
        /// 可退积分抵扣金额
        /// </summary>
        public decimal? EnabledRefundIntegral { get; set; }
        /// <summary>
        /// 优惠券抵扣金额
        /// </summary>
        public decimal CouponDiscount { get; set; }
        /// <summary>
        /// 满额减平摊到订单项的金额
        /// </summary>
        public decimal FullDiscount { get; set; }
    
        public virtual OrderInfo OrderInfo { get; set; }
        public virtual ICollection<OrderRefundInfo> OrderRefundInfo { get; set; } = new HashSet<OrderRefundInfo>();
        public virtual ICollection<ProductCommentInfo> Himall_ProductComments { get; set; } = new HashSet<ProductCommentInfo>();
    }
}
